package com.yungu.swift.order.service;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.order.model.param.RefundParam;

public interface RefundService {

    /**
     * 原路返回退款服务
     *
     * @param refundParam 退款参数
     * @return
     */
    ResponseData<Integer> refund(RefundParam refundParam);

    /**
     * 退款进度查询服务
     *
     * @param orderUuid 订单 id
     * @param userUuid  查询用户 id
     * @return
     */
    ResponseData<Boolean> refundQuery(String orderUuid, String userUuid);


    class RefundException extends Exception {
    }
}
